package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Created by ecchilds on 3/5/14.
 */
public class Library {
    private Collection<Book> bookCollection;

    public Library(Collection<Book> bookCollection) {
        this.bookCollection = bookCollection;
    }

    public String getBooks() {
        StringBuffer bookListString = new StringBuffer();
        for (Book book : bookCollection) {
            bookListString.append(book.getTitle());
            bookListString.append("\n");
        }

        return bookListString.toString();
    }

    public Collection<Book> getBookCollection() {
        return this.bookCollection;
    }
}
